// An abstract class.
function ImageFilter() { }
ImageFilter.prototype.ApplyFilter = function (context, dims, usesEval) {
    if (!usesEval) {
        this.PerformFilter(context, dims);
    } else {
        this.PerformFilterEval(context, dims);
    }
}